package com.aliyun.demo;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.live.model.v20161101.*;
import com.aliyuncs.profile.DefaultProfile;
import com.aliyuncs.profile.IClientProfile;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

public class LiveRecord {
    private static String regionId = System.getenv("regionId");
    private static String accessKeyId = System.getenv("accessKeyId");
    private static String secret = System.getenv("secret");
    private static String domainName = "play-live-one-sz.alivecdn.com";
    private static DefaultAcsClient client;
    static {
        IClientProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, secret);
        client = new DefaultAcsClient(profile);
    }

    @Test
    public void shouldCheckAddLiveAppRecordConfig(){
        AddLiveAppRecordConfigRequest request = new AddLiveAppRecordConfigRequest();
//        request.setActionName();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
    }

    @Test
    public void shouldCheckRealTimeRecordCommand(){
        RealTimeRecordCommandRequest request = new RealTimeRecordCommandRequest();
//        request.setActionName();
        request.setOwnerId(0L);
        // regionId 废弃
        request.setRegionId("");
    }

    @Test
    public void shouldCheckDeleteLiveAppRecordConfig(){
        DeleteLiveAppRecordConfigRequest request = new DeleteLiveAppRecordConfigRequest();
//        request.setActionName();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
    }

    @Test
    public void shouldCheckDescribeLiveRecordConfig(){
        DescribeLiveRecordConfigRequest request = new DescribeLiveRecordConfigRequest();
//        request.setActionName();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
    }

    @Test
    public void shouldCheckDescribeLiveStreamRecordContent(){
        DescribeLiveStreamRecordContentRequest request = new DescribeLiveStreamRecordContentRequest();
//        request.setActionName();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
    }

    @Test
    public void shouldCheckCreateLiveStreamRecordIndexFiles(){
        CreateLiveStreamRecordIndexFilesRequest request = new CreateLiveStreamRecordIndexFilesRequest();
//        request.setActionName();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
    }

    @Test
    public void shouldCheckDescribeLiveStreamRecordIndexFile(){
        DescribeLiveStreamRecordIndexFileRequest request = new DescribeLiveStreamRecordIndexFileRequest();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
//        request.setActionName();
    }

    @Test
    public void shouldCheckDescribeLiveStreamRecordIndexFiles(){
        DescribeLiveStreamRecordIndexFilesRequest request = new DescribeLiveStreamRecordIndexFilesRequest();
//        request.setActionName();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
    }

    @Test
    public void shouldCheckAddLiveRecordNotifyConfig(){
        AddLiveRecordNotifyConfigRequest request = new AddLiveRecordNotifyConfigRequest();
//        request.setActionName(secret);
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
    }

    @Test
    public void shouldCheckDeleteLiveRecordNotifyConfig(){
        DeleteLiveRecordNotifyConfigRequest request = new DeleteLiveRecordNotifyConfigRequest();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
//        request.setActionName();
    }

    @Test
    public void shouldCheckDescribeLiveRecordNotifyConfig(){
        DescribeLiveRecordNotifyConfigRequest request = new DescribeLiveRecordNotifyConfigRequest();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
//        request.setActionName();
    }

    @Test
    public void shouldCheckUpdateLiveRecordNotifyConfig(){
        UpdateLiveRecordNotifyConfigRequest request = new UpdateLiveRecordNotifyConfigRequest();
//        request.setActionName();
        request.setBizSecurityToken(secret);
        request.setOwnerId(0L);
    }
}
